fix(asr): validate MiMo credentials as ASR provider#635
Merged
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
H-Chris233
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
摘要
修复小米 MiMo ASR 已选中后,快捷键启动听写仍误提示检查火山引擎 ASR 凭据的问题。

修复 / 新增 / 改进
ensure_asr_credentials()对xiaomi-mimo-asr的凭据分类。兼容
asr.api_key校验启动听写,不再要求填写火山引擎凭据;其他 ASR provider 行为保持不变。测试计划
命令:
cargo test credential_gate_classifies_mimo_as_api_key_asr_provider --lib结果:通过,
1 passed; 0 failed证据路径:
openless-all/app/src-tauri/src/coordinator/tests.rs命令:
cargo test mimo --lib结果:通过,
7 passed; 0 failed证据路径:
openless-all/app/src-tauri/src/asr/mimo.rsPR Type
Bug fix, Tests
Description
Fix MiMo ASR credential classification
Add explicit credential requirement enum
Add regression test for MiMo provider
Diagram Walkthrough
File Walkthrough
asr_setup.rs
Refactor credential gate with enum for providersopenless-all/app/src-tauri/src/coordinator/asr_setup.rs
CloudAsrCredentialRequirementenum andcloud_asr_credential_requirementfunctionensure_asr_credentialsto use enum matchingtests.rs
Add test for MiMo credential classificationopenless-all/app/src-tauri/src/coordinator/tests.rs
credential_gate_classifies_mimo_as_api_key_asr_provider